<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>立即质检</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="../../res/layuis/css/layui.css">
   <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
   <script type="text/javascript" src="../../res/layuis/layui.js" charset="utf-8"></script>
</head>
<body>

<div class="demoTable" style="margin-top: 10px;">
        
<table class="layui-table"  lay-filter="demo" id="materialQualityTestingDetail">
   
</table>
<script type="text/javascript">
/**
 * 从地址栏传值的代码
 * @param param
 * @returns
 */

function getParameter(param){
	var query = window.location.search;
	var iLen = param.length;
	var iStart = query.indexOf(param);
	if (iStart == -1)
		return "";
	iStart += iLen + 1;
	var iEnd = query.indexOf("&", iStart);
	if (iEnd == -1)
		return query.substring(iStart);
	return query.substring(iStart, iEnd);
}
 

layui.use('table',function(){
	  var table = layui.table;
	  var form = layui.form;
	  
	  table.render({
		    elem: '#materialQualityTestingDetail'
		    ,page: true
		    ,url:'../../listenQualityTestingDetail/findQualityTestingDetail.action?qtId='+getParameter("qtId")
		    ,cols: [[
			       {field:'goodsName',title: '物品名称'}
			      ,{field:'qtdNumber',title: '总数量'}
			      ,{field: 'qtdNoNumber',title: '未通过数量'}
			      ,{field: 'qtPass',title: '通过率'}
			      ,{field: 'stringOpenTime',title: '质检时间'}
		    ]] 
		  });
	  
	 
});
</script>


 </div>

<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->

</body>
</html>